package jym.tan.tmdb.bean.wrapper;

import java.io.Serializable;
import java.util.List;

import jym.tan.tmdb.bean.AlternativeTitle;
import jym.tan.tmdb.bean.Base;

import com.google.gson.annotations.SerializedName;

/**
 * The Class MovieAlternativeTitleWrapper. The Wrapper class which holds the 
 * {@link List} of {@link AlternativeTitle} and other information.
 * <p>
 * 	The properties are:
 * 	<ul>
 * 		<li>id</li>
 * 		<li>titles</li>
 * 	</ul>
 * </p>
 * @author Tanmoy	
 */
public class MovieAlternativeTitleWrapper extends Base implements Serializable {
	
	private static final long serialVersionUID = -8251325999731652725L;
	
	@SerializedName("titles")
	private List<AlternativeTitle> titles;
	
	/**
	 * Default Constructor.
	 */
	public MovieAlternativeTitleWrapper() {
		
	}

	/**
	 * Gets the {@link List} of {@link AlternativeTitle}.
	 *
	 * @return 
	 * 		The titles
	 */
	public List<AlternativeTitle> getTitles() {
		return titles;
	}

	/**
	 * Sets the {@link List} of {@link AlternativeTitle}.
	 *
	 * @param titles 
	 * 		The new titles
	 */
	public void setTitles(List<AlternativeTitle> titles) {
		this.titles = titles;
	}
	
	/* (non-Javadoc)
	 * @see jym.tan.tmdb.bean.BaseBean#toString()
	 */
	@Override
	public String toString() {
		StringBuilder builder = new StringBuilder();
		builder.append("{").
			append("id:").append(id).
			append(",").
			append("titles:").append(titles).
			append("}");
		return builder.toString();
	}
}
